cmake_minimum_required(VERSION 3.30)
project(Ctest)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
add_subdirectory(algorithm)
add_executable(Ctest main.cpp
        calculate.h
        calculate.cpp
        cppstudy/InitMain.cpp
        include/point.h
        cppstudy/point.cpp
        include/math.h
        cppstudy/math.cpp
        include/SelfArray.h
        cppstudy/SelfArray.cpp
        include/hero_ge.h
        cppstudy/StudyFunction.cpp
       )
# 添加可执行文件的输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)